package com.centriole.common.entity;

import java.util.Date;

/**
 * @Author: zhangjj
 * @Description: 用户登录策略表实体类
 * @Date: Created in 2018/5/10 0010 11:12
 * @Modified:
 */
public class ExUserLoginStrategyEntity {
    /**
     * 主键
     */
    private int id;

    /**
     * 策略拥有者的userId
     */
    private String userId;

    /**
     * 登录方式
     */
    private String loginWay;
    /**
     * token时效(小时)
     */
    private int tokenAging;
    /**
     * 登录上限数量
     */
    private int upperLimit;
    /**
     * 已登录数量
     */
    private int loginCount;
    /**
     * 创建人ID
     */
    private String creatorId;
    /**
     * 创建时间
     */
    private Date createTime;
    /**
     * 修改人ID
     */
    private String modifierId;
    /**
     * 修改时间
     */
    private Date modifyTime;

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getUserId() {
        return userId;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }

    public String getLoginWay() {
        return loginWay;
    }

    public void setLoginWay(String loginWay) {
        this.loginWay = loginWay;
    }

    public int getTokenAging() {
        return tokenAging;
    }

    public void setTokenAging(int tokenAging) {
        this.tokenAging = tokenAging;
    }

    public int getUpperLimit() {
        return upperLimit;
    }

    public void setUpperLimit(int upperLimit) {
        this.upperLimit = upperLimit;
    }

    public int getLoginCount() {
        return loginCount;
    }

    public void setLoginCount(int loginCount) {
        this.loginCount = loginCount;
    }

    public String getCreatorId() {
        return creatorId;
    }

    public void setCreatorId(String creatorId) {
        this.creatorId = creatorId;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public String getModifierId() {
        return modifierId;
    }

    public void setModifierId(String modifierId) {
        this.modifierId = modifierId;
    }

    public Date getModifyTime() {
        return modifyTime;
    }

    public void setModifyTime(Date modifyTime) {
        this.modifyTime = modifyTime;
    }

    public ExUserLoginStrategyEntity() {}

    public ExUserLoginStrategyEntity(String userId, String loginWay, int tokenAging, int upperLimit, int loginCount) {
        this.userId = userId;
        this.loginWay = loginWay;
        this.tokenAging = tokenAging;
        this.upperLimit = upperLimit;
        this.loginCount = loginCount;
    }
}
